import request from '@/utils/http'

export function getDeviceRuntimelogById (id) {
    return request({
        url: `deviceRunLog/${id}`,
        method: 'get',
    })
}

export function listDeviceRuntimeLogs (page, pageSize) {
    return request({
        url: 'deviceRunLog',
        method: 'get',
        params: { page, pageSize }
    })
}

export function createdeviceRuntimeLogs (data) {
    return request({
        url: 'deviceRunLog',
        method: 'post',
        data
    })
}

export function updateDeviceRuntimeLog (params) {
    return request({
        url: 'deviceRunLog',
        method: 'put',
        params: params
    })
}

export function deleteDeviceRuntimeLog (id) {
    return request({
        url: `deviceRunLog/${id}`,
        method: 'delete'
    })
}


